#define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
using namespace std;

int main() 
{
    int N = 0;
    while (~scanf("%d", &N)) 
    {
        for (int i = 0; i < N; i++) 
        {
            for (int j = 0; j < N; j++) 
            {
                if ((i == j) || (i + j == N - 1)) 
                {
                    printf("*");
                }
                else 
                {
                    printf(" ");
                }
            }
            printf("\n");
        }
    }

    return 0;
}
